#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void Sort_odd_and_even_numbers(int arr[], int left, int right, int sz)
{
	while (left < right)
	{
		if (arr[left] % 2 == 0)
		{
			int temp = arr[left];
			arr[left] = arr[right];
			arr[right] = temp;
			
		}
		left++;
		right--;
	}
}
int main()
{
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	int left = 0;
	int right = sz - 1;
	for (int i = 0; i < sz; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
	Sort_odd_and_even_numbers(arr, left, right, sz);
	for (int i = 0; i < sz; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}